package com.huashi.dealer.commonEntity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

/**
 * 小程序帮助中心实体类
 */
@Getter
@Setter
@TableName("yoshop_wxapp_help")
@Schema(description = "小程序帮助中心实体")
public class WxappHelp {

    @TableId(value = "help_id", type = IdType.AUTO)
    @Schema(description = "帮助ID")
    private Long helpId;

    @TableField("help_title")
    @Schema(description = "帮助标题")
    private String helpTitle;

    @TableField("help_content")
    @Schema(description = "帮助内容")
    private String helpContent;

    @TableField("sort")
    @Schema(description = "排序")
    private Integer sort;

    @TableField("is_delete")
    @TableLogic
    @Schema(description = "软删除标记")
    private Integer isDelete;

    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @TableField("update_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;
} 